﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/MasterPage.Master" AutoEventWireup="true" CodeBehind="AddMotorcycletoRevision.aspx.cs" Inherits="DrivingCRM.Views.Private.CRM.AddMotorcycletoRevision" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="banniere" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="nav" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="contenu" runat="server">
<h2>Mise en révision d'une moto</h2>

<table>
<tr>
        <td>
            Moto :
        </td>
        <td>
            <asp:DropDownList ID="DDL_Moto" runat="server" 
                        DataSourceID="DS_Moto"
                        DataTextField="CompleteName"
                        DataValueField="IdVehicle">
                    </asp:DropDownList>
       </td>
</tr>
<tr>
        <td>
            Dernière révision :
        </td>
        <td> 
            <telerik:RadDatePicker ID="DP_moto" runat="server">
            </telerik:RadDatePicker>
        </td>
</tr>
<tr>
        <td>
            <asp:Button ID="Add_Revision" runat="server" Text="Mettre en révision" OnClick="put_Moto_Revision"/>
        </td>
</tr>
<tr>
    <td>
        <asp:Label ID="L_ErrorMessage" runat="server" ForeColor="Red"></asp:Label>
    </td>
</tr>
</table>
 <asp:EntityDataSource ID="DS_Moto" runat="server" 
        ConnectionString="name=Model_DrivingCRMContainer" 
        DefaultContainerName="Model_DrivingCRMContainer" EnableFlattening="False" 
        EntitySetName="VehicleSet" EntityTypeFilter="Motorcycle"
        Select="it.IdVehicle AS IdVehicle, it.Brand + ' ' + it.Model + ' - ' + it.Licence AS CompleteName">
    </asp:EntityDataSource>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="footer" runat="server">
</asp:Content>
